/*合同信息*/
var getContractDetail = getContractDetailPro(thisProviderId);
/*详情信息渲染*/
getContractDetail.then(
    (res) => {
        if (res){
            renderForm(res);
        }
    },  // 成功
    (err) => {console.log(err)} // 失败
)
function renderForm(res){
    $(".contractNumber").html(res.contractNumber);
    $(".contractType").html(res.contractType);
    $(".effectiveTime").html(res.effectiveTime);
    $(".invalidTime").html(res.invalidTime);
    $(".contractPdfUrl").attr("imgurldata",res.contractPdfUrl);
    $(".downloadPdf").attr("imgurldata",res.contractPdfUrl);
};
function pdfShow(el) {
    var pdfUrl = $(el).attr("imgurldata");
    if(pdfUrl&&pdfUrl!=""){
        window.location.href = root.orderInter.downLoadFromUrl +'?urlStr='+pdfUrl+'&fileName=合同扫描件';
    }
}